package mystatic.src.LT.Book;

public class BookList {
    Book[] books=new Book[10];
    int cnt=0;
    public  BookList() {
        this.books[0] = new Book("三国演义","罗贯中",10,"小说");
        this.books[1] = new Book("西游记","吴承恩",59,"小说");
        this.books[2] = new Book("红楼梦","曹雪芹",16,"小说");
        cnt=3;
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBooks(Book books,int index) {
        this.books[index] = books;
    }

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    public Book getBook(int index) {
        return books[index];
    }

}
